package method

import "fmt"

type FactoryImpl1 struct {
}

func (f FactoryImpl1) NewProduct() Product {
	fmt.Println("具体工厂1，创建商品1")
	return CreateProduct1{}
}

type FactoryImpl2 struct {
}

func (f FactoryImpl2) NewProduct() Product {
	fmt.Println("具体工厂2，创建商品2")
	return CreateProduct2{}
}
